﻿#include "GUIWidgetBase.h"

#include "FITK_Kernel/FITKAppFramework/FITKAppFramework.h"
#include "FITK_Kernel/FITKAppFramework/FITKGlobalData.h"
#include "FITK_Component/FITKAcousticsModel/FITKAcousticsDiscModel.h"
#include "FITK_Component/FITKAcousticsPhysics/FITKAcousticsPhysics.h"

namespace GUI
{
    GUIWidgetBase::GUIWidgetBase(QWidget * parent) :
        Core::FITKWidget(parent)
    {
        setAttribute(Qt::WidgetAttribute::WA_DeleteOnClose);
        //获取离散数据
        Acoustics::FITKAcousticsDiscModel* discModel = FITKAPP->getGlobalData()->getMeshData<Acoustics::FITKAcousticsDiscModel>();
        _physics = FITKAPP->getGlobalData()->getPhysicsData<Acoustics::FITKAcousticsPhysics>();
        if (discModel == nullptr)return;
        _SEAModel = discModel->getSEAModel();
        _FEModel = discModel->getFEModel();
    }

    GUIWidgetBase::~GUIWidgetBase()
    {

    }
}

